﻿using AntUnion.FrameWork.Model.Models;
using AntUnion.FrameWork.Model.ModelsExt;
using AntUnion.FrameWork.Web.Extend;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TencentCloud.Common;

namespace AntUnion.FrameWork.Web.Service
{
    public class BaseService
    {

        //public static string NOSELFIMAGE = "很抱歉，您只能删除自己上传的图片";

        //public static string OPENIDNULL = "OpenId不能为空";
        //public static string HASMEMBER = "用户已存在，请前往登录";
        //public static string NOMEMBER = "用户不存在，请先注册";
        //public static string NOALLOWLOGIN = "您已被禁止登录";

        //public static string NAMENULL = "报告人姓名不能为空";
        //public static string PHOMENULL = "报告人电话不能为空";
        //public static string COMPANYNULL = "报告人单位不能为空";
        //public static string VNAMAENULL = "被害人姓名不能为空";
        //public static string VSEXNULL = "被害人性别不能为空";
        //public static string DESLESS = "请输入最少不低于10个字符";
        //public static string DESMANY = "请输入最多不高于200个字符";

        public static string TOOBIG = "请上传不超过5M的图片";
        public static string IMAGEFORMAT = "请上传jpg、jpeg、png格式的图片";

        //public static string REGNAMENULL = "姓名不能为空";
        //public static string REGPHOMENULL = "电话不能为空";
        //public static string REGCOMPANYNULL = "单位不能为空";
        //public static string VERIFYCODE = "验证码不能为空";
        //public static string NOAPPMEMBER = "用户不存在，请联系管理员";
        //public static string REPLYNULL = "线索回复不能为空";
        //public static string VERIFYERROR = "验证码错误";
        //public static string VERIFYFAIL = "验证码发送失败";
        //public static string VERIFYMORE = "验证码发送太过频繁，请稍后再试";

        //public static string DISABLELOGIN = "很抱歉，您的账号被禁止登录";
        //public static Credential cred = new Credential
        //{
        //    SecretId = "1400584931",
        //    SecretKey = "22e7c923d6dc91fc64f82232e01607a5"
        //};

        public static Credential cred = new Credential
        {
            //APPID：1253965470
            SecretId = "AKIDf7JEtIQGp792f17wUllUw71f3A1bvykG",
            SecretKey = "GGzUigNnxqSnvnOimZ5KI0RbU7TYMuBT"
        };
        public static int SMSTIMEOUT = 5;

        public static string BaseUrl = DefaultCache.SystemConfig()["base_url"].ToString();
        public static string NewsUrl = "/pages/main/new/details?newsId=";
        public static string PATH = "upload";
        #region  图片最大尺寸限制
        public static int MaxWidth = 1980;
        public static int MaxHeight = 1080;
        #endregion

        #region 图表显示条数
        public static int SHOWCOUNT = 10;
        public static int SHOWDAYS = 30;
        #endregion

    }

    /// <summary>
    /// 用户类型
    /// </summary>
    public enum UserType
    {
        Admin,
        CrmUser
    }

    /// <summary>
    /// 数据来源
    /// </summary>
    public enum Source
    {
        User,
        Manage 
    }

    /// <summary>
    /// 币种
    /// </summary>
    public enum Currency
    {
        USD
    }

    /// <summary>
    /// 用户信息类型
    /// </summary>
    public enum CrmuserInfoType
    {
        None,
        Personal,
        Financial,
        Identity
    }

    /// <summary>
    /// MT5账号类型
    /// </summary>
    public enum Mt5UserType
    {
        Real,
        Simulated
    }

    /// <summary>
    /// 入金方式类型
    /// </summary>
    public enum DepositType
    {
        None,
        WireTransfer,
        RemittanceAccount,
        CryptoCurrency
    }

    /// <summary>
    /// 币种
    /// </summary>
    public enum Creater
    {
        System
    }

    /// <summary>
    ///状态
    /// </summary>
    public enum State
    {
        Disabled,
        Enable
    }

    /// <summary>
    ///状态
    /// </summary>
    public enum WalletTransactionType
    {
        cashOut,
    }

    public enum WalletTransactionMode
    {
        //系统入金
        systemDeposit,
        //系统出金
        systemWithdrawal,
        //返佣收益
        rebateDeposit,
        //返佣转入
        internalTransferIn,
        //异常退回
        internalTransferOut
    }
}
